package com.telecomyt.jwportal.activity.conference.adapter;

import android.widget.ImageView;
import android.widget.TextView;

import com.chad.library.adapter.base.BaseQuickAdapter;
import com.chad.library.adapter.base.BaseViewHolder;
import com.telecomyt.jwportal.R;
import com.telecomyt.jwportal.activity.camera.bean.CameraBean;
import com.telecomyt.jwportal.utils.GlideUtils;

public class ConferenceAdapter extends BaseQuickAdapter<CameraBean.ResultBean, BaseViewHolder> {
    public ConferenceAdapter(int layoutResId) {
        super(layoutResId);
    }

    @Override
    protected void convert(BaseViewHolder helper, CameraBean.ResultBean item) {
        TextView mTvStutas = helper.getView(R.id.mTvStutas);
        ImageView mImageView = helper.getView(R.id.mImageView);
        GlideUtils.load(mContext, item.getPic_huge(), mImageView);
        switch (item.getRank()) {
            case "1":
                mTvStutas.setText("通话中");
                break;
            case "2":
                mTvStutas.setText("呼叫中");
                break;
            case "3":
                mTvStutas.setText("已静音");
                break;
            case "4":
                mTvStutas.setText("网络状态不好");
                break;
            default:
                mTvStutas.setText("默认");
                break;
        }


    }
}
